//
//  SliderPageView.swift
//  SwiftUIDemo
//
//  Created by Kael on 2020/1/11.
//  Copyright © 2020 Kael. All rights reserved.
//

import SwiftUI

struct SliderPageView: View {
    
    @State var rating = 0.5;
    
    var body: some View {
        VStack {
            Text("slider value :  \(self.rating)")
            Divider()
                .padding(10)
            Slider(value: $rating)
        }
    }
}

struct SliderPageView_Previews: PreviewProvider {
    static var previews: some View {
        SliderPageView()
    }
}
